extends StateBase

##飞船节点
@export var ship: BaseShip

func enter() -> void:
	super.enter()
	ship.animation_player.play("transmit_start")
	ship.shot_wait_timer.paused = true
	ship.transmit_direction = Input.get_vector("left_move", "right_move", "up_move", "down_move")
	ship.stats.energy -= ship.stats.transmit_cost
	ship.status_ui.hide_UI(true)

func physics_process_update(delta: float) -> void:
	super.physics_process_update(delta)
	if not ship.animation_player.is_playing():
		state_machine.change_state("TransmitLoop")
	
